﻿<!DOCTYPE html>
<html>

<head>
    <title>WebGlobe</title>
    <meta http-equiv="Content-Type" content="text/html" />
    <meta charset="utf-8" />
    <!--<meta name="charset" content="utf-8" />-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    <link rel="shortcut icon" href="images/logo.png" />
    <script id="statistics" type="text/javascript"></script>
    <script type="text/javascript">
        (function() {
            var search = window.location.search;
            var paramsObj = {};
            if (search) {
                var kvs = search.replace("?", "").split("&");
                var splits = null;
                for (var i = 0; i < kvs.length; i++) {
                    splits = kvs[i].split("=");
                    if (splits.length === 2) {
                        paramsObj[splits[0]] = splits[1];
                    }
                }
            }

            var isMobile = window.navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone|IEMobile|Opera Mini/i);
            if (isMobile) {
                if (!paramsObj.pc) {
                    window.location.href = "webapp.html";
                    return;
                }
            }

            // var reg = /^https:\/\/ispring.github.io\/WebGlobe\/($|index.html)/ig;
            // if (reg.test(window.location.href)) {
            //     window._hmt = window._hmt || [];
            //     var statisticsScript = document.querySelector("#statistics");
            //     statisticsScript.src = "https://hm.baidu.com/hm.js?8f4f772c1a48735deb9712902c5315b6";

            //     var version = "";
            //     if (paramsObj.hasOwnProperty("v")) {
            //         version = paramsObj.v;
            //     }
            //     var supportedVersions = ["0.2.1", "0.4.4"];
            //     if (supportedVersions.indexOf(version) >= 0) {
            //         window.location.href = version + "/index.html";
            //         return;
            //     }
            // }
        })();
    </script>
</head>

<body onselectstart="return false;">
    <a id="fork-me" target="_blank" href="https://github.com/iSpring/WebGlobe">
        <img src="images/fork-me-on-github.png" alt="Fork me on GitHub" />
    </a>
    <!--<a id="about-me" target="_blank" href="http://github.com/iSpring">
        <img src="images/iSpring.png" />
    </a>-->
</body>

</html>